<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-05-24 08:27:19
 * @LastEditors: Silence
 * @LastEditTime: 2023-05-24 11:19:38
-->
<template>
  <!-- <span v-for="(item, index) in list" :key="item"
      >{{ index + 1 }}: {{ item.statu }}</span -->
  <span>{{ id }}: {{ statu }}</span>
</template>
<script>
export default {
  props: ['id'],
  data () {
    return {
      statu: '未完成'
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  },
  mounted () {
    this.$Bus.$on('obj', (e) => {
      // console.log(e)
      // this.list.find(item => item.id === e.id).statu = e.statu
      if (this.id === e.id) {
        this.statu = e.statu
      }
    })
  },
}
</script>
<style lang='less'  scoped>
</style>
